home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / monitor / prompt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-01-23  |  606 b   |  44 lines

  1. # include    "monitor.h"
  2. # include    <ingres.h>
  3. # include    <aux.h>
  4. # include    <sccs.h>
  5.  
  6. SCCSID(@(#)prompt.c    8.1    12/31/84)
  7.  
  8.  
  9.  
  10. /*
  11. **  OUTPUT PROMPT CHARACTER
  12. **
  13. **    The prompt is output to the standard output.  It will not be
  14. **    output if -ss mode is set or if we are not at a newline.
  15. **
  16. **    The parameter is printed out if non-zero.
  17. **
  18. **    Uses trace flag 14
  19. */
  20.  
  21. prompt(msg)
  22. char    *msg;
  23. {
  24.     if (!Prompt || GiveEof)
  25.         return;
  26.     if (Nodayfile >= 0)
  27.     {
  28.         if (msg)
  29.             printf("\07%s\n", msg);
  30.         printf("* ");
  31.     }
  32.     fflush(stdout);
  33. }
  34.  
  35.  
  36. /*
  37. **  PROMPT WITH CONTINUE OR GO
  38. */
  39.  
  40. cgprompt()
  41. {
  42.     prompt(Notnull ? "continue" : "go");
  43. }
  44.